package com.liao.seckill.service;

import com.liao.seckill.pojo.*;

public interface OrderService {

    TbOrderInf findById(String orderId);

    TbOrderInf findOrderByUserIdAndGoodsId(Integer userId,Integer goodsId);

    TbOrderInf secKill(TbGoodsMiaosha tbGoodsMiaosha, Integer userId);

    void secKillMQ(Integer goodsId, Integer userId);

    TbMiaoshaOrder findMiaoShaOrderByOrderId(String orderId);

    void miaoShaSender(TbGoodsMiaosha tbGoodsMiaosha, TbUser tbUser);

}
